<?php
	switch ($type)
	{
		case 'music':
			$gallery = new MusicGallery();
			break;
		case 'pictures':
			$gallery = new PictureGallery();
			break;
		case 'blog':
			$gallery = new BlogGallery();
			break;
	}
?>